$("#submit_SPT_report").click(function () {
    var con = true;
    $(".SPT_report_content").each(function () {
        if ($(this).text() == "") {
            $(this).focus();
            alert("请填写---->");
            con = false;
            return false;
        }
    });
    if(!con){
        return false;
    }
    $.ajax({
        beforeSend: function(request){
            request.setRequestHeader("uid", localStorage.getItem("token"));
        },
        url:"/user/submit-SPT-report",
        type:"post",
        contentType: "application/json;charset=utf-8",
        dateType:"json",
        data:JSON.stringify({
            hbbsm:$("#F_HBBSM").text(),
            dycjcz:$("#F_DYCJCZ").text(),
            decjcz:$("#F_DECJCZ").text(),
            dscjcz:$("#F_DSCJCZ").text(),
            pjz:$("#F_PJZ").text(),
            xz:$("#F_XZ").text()
        }),
        success: function (data) {
            alert(data.message);
        }
    });
});